package dome2;

public class Test3 {
    public static void main(String[] args) {
        System.out.println(new Student("小狗" ,1));
    }
}
class Student{
    String name ;
    int age ;

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

}
